package com.java47.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class Action {

    @RequestMapping("text1")
    public String text1(Model model){
        model.addAttribute("str","BBB");
        return "text1";
    }

}
